package Animal;

public class Duck extends Animal implements ISwimming,IRunning,IFlying{
    public Duck(String name) {
        super(name);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public void Fly() {
        System.out.println(this.name + "正在用翅膀飞");

    }

    @Override
    public void Run() {
        System.out.println(this.name + "正在有脚掌奔跑");
    }

    @Override
    public void Swimming() {
        System.out.println(this.name + "正在有脚掌游泳");

    }
}
